<?php

require_once('lib/Constants.php');
require_once('lib/Invite.php');
require_once('lib/MixiAppliAPI.php');

$api = new MixiAppliAPI(array_merge($_GET, $_POST));

$api->validate_params(array(
    'all' => array(array('in_array', '0', '1')),
));

$invite_list = Invite::get_list($api->viewer_id, $api->params['all']);

if ($invite_list === FALSE)
    $api->set_error('could not load invite list');

$api->set_result($invite_list);

?>
